package com.spe.common.mybatis;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author limingliang
 * @date 2020/12/11 11:15
 */
@Configuration(proxyBeanMethods = false)
@MapperScan(basePackages = {"com.spe.**.modular.**.mapper"})
public class MybatisAutoConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
